package dto;

public class RefundDTO {
	private String refundPolicyCode;
	private String refundPolicyContents;
	
	public RefundDTO() {
		super();
	}
	public RefundDTO(String refundPolicyCode, String refundPolicyContents) {
		super();
		this.refundPolicyCode = refundPolicyCode;
		this.refundPolicyContents = refundPolicyContents;
	}
	public String getRefundPolicyCode() {
		return refundPolicyCode;
	}
	public void setRefundPolicyCode(String refundPolicyCode) {
		this.refundPolicyCode = refundPolicyCode;
	}
	public String getRefundPolicyContents() {
		return refundPolicyContents;
	}
	public void setRefundPolicyContents(String refundPolicyContents) {
		this.refundPolicyContents = refundPolicyContents;
	}
	@Override
	public String toString() {
		return "RefundDTO [refundPolicyCode=" + refundPolicyCode
				+ ", refundPolicyContents=" + refundPolicyContents + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((refundPolicyCode == null) ? 0 : refundPolicyCode.hashCode());
		result = prime
				* result
				+ ((refundPolicyContents == null) ? 0 : refundPolicyContents
						.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RefundDTO other = (RefundDTO) obj;
		if (refundPolicyCode == null) {
			if (other.refundPolicyCode != null)
				return false;
		} else if (!refundPolicyCode.equals(other.refundPolicyCode))
			return false;
		if (refundPolicyContents == null) {
			if (other.refundPolicyContents != null)
				return false;
		} else if (!refundPolicyContents.equals(other.refundPolicyContents))
			return false;
		return true;
	}
	
}
